package com.zbj.provider;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ProviderController
 *
 * @author weigang
 * @create 2019-07-30
 **/
@RestController
@RequestMapping("/provider")
public class ProviderController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/hello/{tom}")
    public String hello(@PathVariable String tom) {
        return "hello " + tom + " " + port;
    }
}